<?php
    echo $this->Html->script('backend/tiny_mce/plugins/imagemanager/js/mcimagemanager');
    echo $this->Form->create('Video', array(
	        'url'   => array('action' => $this->request->params['action']),
	        'class' => 'form label-inline',
	        'inputDefaults' => array('div' => array('class' => 'field')),
    		'name' => 'videos'
        )
    );
    echo $this->Form->inputs(array(
    	'id',
        'title',
    	'description',
    	'file',
    	'last',
    	'price',
    	'course_id',
    	'author_id',
    	'image'=>array('after'=>"<a href=\"javascript:mcImageManager.open('videos','data[Video][image]','','',{rootpath : 'files/images', remove_script_host : true});\">[Seleccionar Imagen]</a>"),
        'fieldset' => false
    ));
    echo $this->Form->end(array('class' => 'btn', 'div' => array('class'=>'buttonrow'), 'label' => 'Guardar'));
?>
